package com.zhangc.blog.base.enums;

import com.zhangc.blog.base.validator.ServiceExceptionNameProvider;

public enum BlogExceptionCode implements ServiceExceptionNameProvider {
    // 自提码服务异常
    BLOG_ERROR_01("blog.error.01"),
    /**
     * blog.admin.username_pwd.isblank
     */
    ADMIN_USERNAME_PWD_BLANK("blog.admin.username_pwd.isblank"),

    REQUEST_EMPTY("当前请求参数为空或数据缺失，请联系管理员"),
    ;

    private String name;

    BlogExceptionCode(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}
